﻿using Coldairarrow.Entity.Backstage.TheRules;
using Coldairarrow.Util;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Backstage.TheRules
{
    public interface IBS_RebateBusiness
    {
        Task<PageResult<GetRebateDTO>> GetDataListAsync(PageInput<ConditionDTO> input);
        Task<BS_Rebate> GetTheDataAsync(string id);
        Task<List<GetGoosDto>> GetGoodsList(GetGoosDto input);
        Task AddDataAsync(BS_Rebate data);
        Task UpdateDataAsync(BS_Rebate data);
        Task DeleteDataAsync(List<string> ids);
    }

    public class GetRebateDTO: BS_Rebate
    { 
        public string GoodName { get; set; }

        public string GoodPic { get; set; }

        public decimal GoodPrice { get; set; }
    }

    public class GetGoosDto {
        public string GoodName { get; set; }
        public string Id { get; set; }
    }

}